3890bfae5224eca7a1e972c291168e1823181ec2,JSONArray.java,JSONArray,getDouble,#number#,241

Before Change


    public double getDouble(int index) throws JSONException {
        Object object = this.get(index);
        try {
            return object instanceof Number ? ((Number) object).doubleValue()
                    : Double.parseDouble((String) object);
        } catch (Exception e) {
            throw new JSONException("JSONArray[" + index + "] is not a number.");
        }

After Change


    public double getDouble(int index) throws JSONException {
        Object object = this.get(index);
        try {
            if (object instanceof Number) {
                return ((Number) object).doubleValue();
            } else if (object instanceof String) {
                return Double.parseDouble((String) object);
            }
        } catch (Exception e) {